import 'package:intl/intl.dart';

class TimeUtils {
  static String formatTimeStamp(int timeStamp, {String format = 'yyyy-MM-dd HH:mm:ss'}) {
    DateTime dateTime = DateTime.fromMillisecondsSinceEpoch(timeStamp);
    return DateFormat(format).format(dateTime);
  }
}